package edu.sctu.xuping.month05.day20150511;

/**
 * Created by user16 on 2015/5/11.
 */
public class TextThree extends TextOne {
    private String name;
    private int age;
    private int income;

    public TextThree(String name, int age, int income) {
        this.name = name;
        this.age = age;
        this.income = income;
    }

    @Override
    public void getAge() {
        System.out.println(age);
    }

    @Override
    public void getName() {
        System.out.println(name);
    }

    @Override
    public void getIncome() {
        System.out.println(income);
    }

    public void getNews() {
        this.getIncome();
        this.getName();
        this.getAge();
    }
}
